import Vue from 'vue'
import App from './App.vue'
import VueRouter from 'vue-router'
import store from './vuex/index'
import Vuex from 'vuex'
import routes from './routes'


import './styles/styles.scss';
import VueQriously from 'vue-qriously'
Vue.use(VueQriously)

Vue.use(Vuex)
Vue.use(VueRouter)



const router = new VueRouter({
	routes
})
router.beforeEach((to, from, next) => {
	next();
//	if(from.path != '/login' && window.MessageBox != null) {
//		window.MessageBox.close();
//	}
//	if(from.path != '/register' && from.path != '/binding' && from.path != '/find' && from.path != '/login'&& from.path != '/bounds') {
//		window.formFullPath = from.fullPath;
//		window.formPath = from.path;
//	}

})

new Vue({
	router,
	store,
	render: h => h(App)
}).$mount('#app')